import request from '@/utils/request'

// 查询商品标签列表
export function listShoptype(query) {
  return request({
    url: '/shoptype/shoptype/list',
    method: 'get',
    params: query
  })
}

// 查询商品标签详细
export function getShoptype(id) {
  return request({
    url: '/shoptype/shoptype/' + id,
    method: 'get'
  })
}

// 新增商品标签
export function addShoptype(data) {
  return request({
    url: '/shoptype/shoptype',
    method: 'post',
    data: data
  })
}

// 修改商品标签
export function updateShoptype(data) {
  return request({
    url: '/shoptype/shoptype',
    method: 'put',
    data: data
  })
}

// 删除商品标签
export function delShoptype(id) {
  return request({
    url: '/shoptype/shoptype/' + id,
    method: 'delete'
  })
}
